package com.sanjiayi.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("动态实体")
public class Moment {
    @ApiModelProperty("动态ID")
    private Integer momentId;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("动态内容")
    private String content;

    @ApiModelProperty("图片列表，多个图片用逗号分隔")
    private String images;

    @ApiModelProperty("话题")
    private String topic;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("点赞数")
    private Integer likeCount;

    @ApiModelProperty("评论数")
    private Integer commentCount;

    @ApiModelProperty("视频URL")
    private String videos;
} 